package com.krediti.test;

import org.jboss.seam.annotations.Install;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.intercept.BypassInterceptors;

import com.krediti.entity.Status;
import com.krediti.entity.StatusZahteva;
import com.krediti.session.KreditniZahtevHome;


@Install(debug = true, precedence = Install.MOCK)
@BypassInterceptors
public class KreditniZahtevHomeMock extends KreditniZahtevHome{
	
	public KreditniZahtevHomeMock(){
		super();
	}
	
	/**
	 * Generated serial version.
	 */
	private static final long serialVersionUID = -824396758785331430L;

	public StatusZahteva getStatusZahteva() {
		return new StatusZahteva();
	}
	
@Override
	public boolean isFilledDataInStatusZahteva(){
		
		getStatusZahteva().setStatus(new Status());
		getStatusZahteva().setKreditniZahtev(getInstance());
		
		if(isFilledDataInStatusZahteva()) return true;
		
		return false;
		
	}
@Override
public String persist() {
	// TODO Auto-generated method stub
	return super.persist();
}
}

